function A = slrandorth(d)
%SLRANDORTH Generates a orthonormal matrix randomly
%
% [ Syntax ]
%   - A = slrandorth(d)
%
% [ Description ]
%   - A = slrandorth(d) generates a d x d orthonormal matrix randomly.
%
% [ History ]
%   - Created by Dahua Lin, on Dec 23, 2007
%

%% parse and verify input arguments

assert(isnumeric(d) && isscalar(d) && d > 0, ...
    'sltoolbox:slrandorth:invalidarg', ...
    'd should be a positive integer scalar.');

%% main

A = orth(rand(d));
